package com.kgc.ebookk.ebookkmanger.service;




import com.github.pagehelper.PageInfo;
import com.kgc.ebookk.ebookkmanger.pojo.EbookCategory;
import com.kgc.ebookk.ebookkmanger.pojo.EbookEntry;
import com.kgc.ebookk.ebookkmanger.pojo.ViewEntryCategory;

import java.util.List;

public interface EbookService {
    //查询图书分类
    public List<EbookCategory> queryAll();
    //根据分类id查看图书列表分页
    public PageInfo<ViewEntryCategory> querybookAll(Integer categoryid, Integer pageNum, Integer pageSize);
    //根据id查询图书
    public EbookEntry queryByid(Integer id);
    //修改
    public int updateEbook(EbookEntry ebookEntry);
    //添加
    public int addEbook(EbookEntry ebookEntry);
    //删除
    public int delEbook(Integer id);
}
